package com.xxx.service;

import com.xxx.ServerBootstrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by louisyuu on 2020/4/21 上午11:18
 */

@Service
public class DemoServiceImpl implements DemoService {


    @Autowired
    private ServerBootstrap serverBootstrap;

    @Override
    public String demo(String msg) {
        return "=====Call successfully " + msg + " from server port " + serverBootstrap.getPort();
    }
}
